#include <iostream>

class Base {
public:
    void display() const {
        std::cout << "Base display()" << std::endl;
    }
    void display(int) {
        std::cout << "Base display(int)" << std::endl;
    }
};

class Derived : public Base {
public:
    using Base::display; // 引入Base类中所有display()函数的定义
    void display() const {
        std::cout << "Derived display()" << std::endl;
    }
};

int main() {
    Derived d;
    d.display();        // 调用Derived中的display()
    d.display(10);      // 调用Base中的display(int)
    d.Base::display();  // 显式调用Base中的无参display()

    return 0;
}